package com.itheima.fanxing;

import java.util.ArrayList;
import java.util.Iterator;

/**
 * 没有泛型的现象
 */
public class Test01 {
    public static void main(String[] args) {
        ArrayList list= new ArrayList();
        list.add("鹿晗");
        list.add(123);
        list.add(true);

       /* for (Object o : list) {
            System.out.println(o);
        }*/
        Iterator iterator = list.iterator();
        while(iterator.hasNext()){
            Object next = iterator.next();
            System.out.println(next);
        }
    }



}
